home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: uu4news.netcom.com!zodiac!szh
- From: szh@zcon.com (Syed Zaeem Hosain)
- Subject: Re: need for function prototypes
- Message-ID: <1996Feb27.192312.22951@zcon.com>
- Sender: szh@zcon.com (Syed Zaeem Hosain)
- Nntp-Posting-Host: zodiac
- Reply-To: szh@zcon.com
- Organization: Z Consulting Group
- References: <4gutho$o1a@mn5.swip.net>
- Date: Tue, 27 Feb 1996 19:23:12 GMT
-
- In article <4gutho$o1a@mn5.swip.net>, chris.rossall@mailbox.swipnet.se (Chris Rossall) writes:
- >Hello I am having trouble understanding why I should use function
- >prototypes. I mean,if the function is defined before it is used,the
- >compiler should have enough information about the parameters to
- >produce correct code anyway.
-
- Yes. In *that* situation, prototypes are not needed. But have you ever
- written large enough programs where it is more convenient to keep the
- functions in separate modules (like files)? How would you deal with
- those situations? When you answer this for yourself, you will then
- understand the need for prototypes.
-
- Z
-
-
- --
- -------------------------------------------------------------------------
- | Syed Zaeem Hosain P. O. Box 610097 (408) 441-7021 |
- | Z Consulting Group San Jose, CA 95161 szh@zcon.com |
- -------------------------------------------------------------------------
-